
#include "ct.h"
//////////////////////////////// Callback stubs ////////////////////////////////

PPM_NET_CB(wroteNewValue) {
	LOG("Callback Set interrupt!\n");
	nextTime = ppmReadNet(handles.readNextTime);
	nextValue = ppmReadNet(handles.readNextValue);
}

PPM_CONSTRUCTOR_CB(constructor) {
    LOG("Constructor called\n");
    periphConstructor();
}

PPM_DESTRUCTOR_CB(destructor) {
	LOG("Destructor called\n");
}

PPM_REG_READ_CB(regRd32) {
	LOG("Unset Interrupt!\n\n");
	ppmWriteNet(handles.intp, 0);
    return *(Uns32*)user;
}

